#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "relationframe.h"
#include "newdialog.h"
#include <QFile>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;
    RelationFrame *relations;
    NewDialog *newDialog;
    QFile metadataFile;
private slots:
    void on_actionNew_activated();
    void on_actionOpen_activated();
    void on_listWidget_currentRowChanged(int row);
};

#endif // MAINWINDOW_H
